<?
	global $db, $partners;
	
	$sql = "select * from image_post_silder_id where active = 1 and alias_name = "."'partners'";
	
	//echo $sql;
	$img_group_id = $db->getRow($sql);
	
	$img_id = $img_group_id['id'];
	
	$sql = "select * from image_post_silder where active = 1 and img_id = ".$img_id." order by id desc, num asc limit 8";
	
	//echo $sql;
	$partners = $db->getAll($sql);
	
	include(UC_DIR_TPL.'Partners.ctp');
?>